module.exports = {
    // baseUrl: './',
    // baseUrl: './',
    publicPath: "./",
    outputDir: "dist",
    assetsDir: "static",
    indexPath: "index.html",

    filenameHashing: true,
    productionSourceMap: true,
    integrity: false,
    configureWebpack: {
        resolve: {
            alias: {
                'assets': '@/assets',
                'components': '@/components',
                'views': '@/views',
            }
        }
    },
    // css相关配置
    css: {
        // 是否使用css分离插件 ExtractTextPlugin
        extract: true,
        // 开启 CSS source maps?
        sourceMap: false,
        // css预设器配置项
        loaderOptions: {
            sass: {
                data: `@import "./public/css/public.scss";
                    @import "./public/css/public.scss";`,
            },
            postcss: {
                plugins: [
                    require('postcss-px2rem')({
                        remUnit: 37.5
                    })
                ]
            }
        },
        // 启用 CSS modules for all css / pre-processor files.
        modules: false
    },
    lintOnSave: false,
    devServer: {
        overlay: {
            warning: false,
            errors: false
        }
    }
};